package JAVASE516;

import java.util.Scanner;

public class JAVAencrypt {
    public static void main(String[] argc){
        System.out.println("请输入待加密数字：");
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        int i=0;
        int x=num;
        while(num!=0){
            num=num/10;
            i++;
        }
        int[] arr=new int[i];
        for (int j = 0; j < arr.length; j++) {
            arr[j]=(x%10+5)%10;
            x=x/10;
        }

        for (int i1 = 0; i1 < arr.length; i1++) {
            System.out.print(arr[i1]);
        }
    }
}
